package main

func findDifference(nums1 []int, nums2 []int) [][]int {
	m1 := make(map[int]struct{})
	m2 := make(map[int]struct{})
	for _, v := range nums1 {
		m1[v] = struct{}{}
	}
	for _, v := range nums2 {
		m2[v] = struct{}{}
	}
	var res1, res2 []int
	for v := range m1 {
		if _, ok := m2[v]; !ok {
			res1 = append(res1, v)
		}
	}
	for v := range m2 {
		if _, ok := m1[v]; !ok {
			res2 = append(res2, v)
		}
	}
	return [][]int{
		res1, res2,
	}
}

func main() {

}
